package com.xthh._struct;


import com.xthh._enum.HH_EnumDeviceColorType;
import com.xthh._enum.HH_EnumOnLineState;

public class HH_T_BindDevice {

    public int proType;//  2表示第2套协议，3表示第3套协议，3协议去掉了获取Bitmap，改为在连接时自动返回
    String name;
    String macRes;// 反转的，适应公司的显示
    boolean connectState;// 真 连接，假 未连
    int dbm;
    boolean sel;// 是否被选中
    String picPath_A;
    String picPath_B;
    boolean bwReversal;
    private byte []bscyData;
    private HH_T_MsgTask msgTask; // 消息任务
    String bz;// 备注
    HH_EnumDeviceColorType deviceColorType;
    int picIndex;// 图片序号，0擦除所有图片  1、2、3表示序号
    int picAttr;// 1-刷新图片  2-只储存不刷新
    String ver;
    int width;
    int height;
    String size;// 尺寸，例如7。5
    int batteryB;// 电量百分比
    HH_EnumOnLineState onlineState;// 显示类型，全部、在线、离线、未注册
    int isWithNewspush;// 带消息推送
    int isWithFrontLight;// 带前光
    int isWithLED;// 带LED
    // 旋转参数
    int rotate_A = 0; // 0-0度, 1-90度，2-180度，3-270度
    int rotate_B = 0; // 0-0度, 1-90度，2-180度，3-270度

    // 这几个是JNI传来的
    public int chipType;// 芯片类型
    public int sendPower;// 发射功率
    public String hardwareVer;//
    public String deviceName;//
    public int contraryROW;//
    public int contraryCOL;//
    public int keyCount;

    public int deviceNumber; // 设备编号

    public int deviceType; // 1ble,2wifi

    public byte []brushParams;

    public byte[] getBrushParams() {
        return brushParams;
    }

    public void setBrushParams(byte[] brushParams) {
        this.brushParams = brushParams;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public int getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(int deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public int getProType() {
        return proType;
    }

    public void setProType(int proType) {
        this.proType = proType;
    }


    public int getRotate_A() {
        return rotate_A;
    }

    public void setRotate_A(int rotate_A) {
        this.rotate_A = rotate_A;
    }

    public int getRotate_B() {
        return rotate_B;
    }

    public void setRotate_B(int rotate_B) {
        this.rotate_B = rotate_B;
    }

    public int getKeyCount() {
        return keyCount;
    }

    public void setKeyCount(int keyCount) {
        this.keyCount = keyCount;
    }

    public int getChipType() {
        return chipType;
    }

    public void setChipType(int chipType) {
        this.chipType = chipType;
    }

    public int getSendPower() {
        return sendPower;
    }

    public void setSendPower(int sendPower) {
        this.sendPower = sendPower;
    }

    public String getHardwareVer() {
        if (hardwareVer == null)
            return "";
        return hardwareVer;
    }

    public void setHardwareVer(String hardwareVer) {
        this.hardwareVer = hardwareVer;
    }

    public String getDeviceName() {
        if (deviceName == null)
            return "";
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }


    public int getContraryROW() {
        return contraryROW;
    }

    public void setContraryROW(int contraryROW) {
        this.contraryROW = contraryROW;
    }

    public int getContraryCOL() {
        return contraryCOL;
    }

    public void setContraryCOL(int contraryCOL) {
        this.contraryCOL = contraryCOL;
    }

    public int getIsWithNewspush() {
        return isWithNewspush;
    }

    public void setIsWithNewspush(int isWithNewspush) {
        this.isWithNewspush = isWithNewspush;
    }

    public int getIsWithFrontLight() {
        return isWithFrontLight;
    }

    public void setIsWithFrontLight(int isWithFrontLight) {
        this.isWithFrontLight = isWithFrontLight;
    }

    public int getIsWithLED() {
        return isWithLED;
    }

    public void setIsWithLED(int isWithLED) {
        this.isWithLED = isWithLED;
    }

    public HH_EnumOnLineState getOnlineState() {
        if (onlineState == null)
            return HH_EnumOnLineState.DISPLAY_UNREGISTER;
        return onlineState;
    }

    public void setOnlineState(HH_EnumOnLineState onlineState) {
        this.onlineState = onlineState;
    }

    public String getSize() {
        if (size == null)
            return "";
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getBatteryB() {
        return batteryB;
    }

    public void setBatteryB(int batteryB) {
        this.batteryB = batteryB;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getResInfo(){
        return String.format("%d*%d", width, height);
    }

    public String getVer() {
        if (ver == null)
            return "";
        return ver;
    }

    public void setVer(String ver) {
        this.ver = ver;
    }

    public HH_EnumDeviceColorType getDeviceColorType() {
        if (deviceColorType == null)
            return HH_EnumDeviceColorType.BLACK_WHITE_0;
        return deviceColorType;
    }


    public void setDeviceColorType(HH_EnumDeviceColorType deviceColorType) {
        this.deviceColorType = deviceColorType;
    }

    public int getPicIndex() {
        return picIndex;
    }

    public void setPicIndex(int picIndex) {
        this.picIndex = picIndex;
    }

    public int getPicAttr() {
        return picAttr;
    }

    public void setPicAttr(int picAttr) {
        this.picAttr = picAttr;
    }

    public String getBz() {
        if (bz == null)
            return "";
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public HH_T_MsgTask getMsgTask() {
        return msgTask;
    }

    public void setMsgTask(HH_T_MsgTask msgTask) {
        this.msgTask = msgTask;
    }

    public byte[] getBscyData() {
        return bscyData;
    }
    public void setBscyData(byte[] bscyData) {
        this.bscyData = bscyData;
    }


    public String getPicPath_A() {
        if (picPath_A == null)
            return "";
        return picPath_A;
    }

    public void setPicPath_A(String picPath) {
        this.picPath_A = picPath;
    }

    public String getPicPath_B() {
        if (picPath_B == null)
            return "";
        return picPath_B;
    }

    public void setPicPath_B(String picPath) {
        this.picPath_B = picPath;
    }

    public boolean isBwReversal() {
        return bwReversal;
    }

    public void setBwReversal(boolean bwReversal) {
        this.bwReversal = bwReversal;
    }

    public boolean isSelect() {
        return sel;
    }

    public void setSelect(boolean select) {
        this.sel = select;
    }

    public int getDbm() {
        return dbm;
    }

    public void setDbm(int dbm) {
        this.dbm = dbm;
    }

    public String getName() {
        if (name == null)
            return "";
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isConnectState() {
        return connectState;
    }

    public void setConnectState(boolean connectState) {
        this.connectState = connectState;
    }

    public String getMacRes() {
        if (macRes == null)
            return "";
        return macRes;
    }

    public void setMacRes(String macRes) {
        this.macRes = macRes;
    }

}
